package com.rc.saas.tenant.service.ugs;

import com.github.pagehelper.PageInfo;
import com.rc.saas.tenant.base.BaseService;
import com.rc.saas.tenant.mapper.ugs.TenantUgsLevelDiscountStationMapper;
import com.rc.saas.tenant.model.ugs.TenantUgsLevelDiscountStation;
import com.rc.saas.tenant.model.ugs.TenantUgsLevelDiscountStationExample;
import com.rc.saas.tenant.search.ugs.LevelDiscountStationSearch;
import com.rc.saas.tenant.vo.ugs.LevelDiscountStationResultVo;
import com.rc.saas.tenant.vo.ugs.UgsLevelDiscountStationResultVo;

/**
 * @author frog
 * @date 2021/4/3
 */
public interface TenantUgsLevelDiscountStationService extends BaseService<Long, TenantUgsLevelDiscountStation, TenantUgsLevelDiscountStationExample, TenantUgsLevelDiscountStationMapper> {

    PageInfo<LevelDiscountStationResultVo> listPageLevelDiscountStation(LevelDiscountStationSearch levelDiscountStationSearch);

    /**
     *
     * @param discountType 0:为普通会员 1:为超级会员
     * @param elecStationId
     * @return
     */
    UgsLevelDiscountStationResultVo selectDiscountByType(String discountType, Long elecStationId);

    void saveOrUpdateStationDiscount(UgsLevelDiscountStationResultVo ugsLevelDiscountStationResultVo);
}
